/*    */ package net.gxf.java2dgame.transform;
/*    */ 
/*    */ import java.awt.Color;
/*    */ import java.awt.Graphics;
/*    */ import java.awt.Graphics2D;
/*    */ import javax.swing.JFrame;
/*    */ import javax.swing.JPanel;
/*    */ 
/*    */ public class Rotate extends JPanel
/*    */ {
/*    */   public void paint(Graphics g)
/*    */   {
/* 10 */     super.paint(g);
/*    */ 
/* 12 */     Graphics2D g2d = (Graphics2D)g;
/*    */ 
/* 14 */     g2d.setColor(new Color(150, 150, 150));
/* 15 */     g2d.fillRect(20, 20, 80, 50);
/* 16 */     g2d.translate(180, 20);
/*    */ 
/* 19 */     g2d.fillRect(0, 0, 80, 50);
/*    */   }
/*    */ 
/*    */   public static void main(String[] args)
/*    */   {
/* 25 */     JFrame frame = new JFrame("Rotation");
/* 26 */     frame.setDefaultCloseOperation(3);
/* 27 */     frame.add(new Rotate());
/* 28 */     frame.setSize(300, 200);
/* 29 */     frame.setLocationRelativeTo(null);
/* 30 */     frame.setVisible(true);
/*    */   }
/*    */ }

/* Location:           C:\DBDownload\lwjglDemo2\lwjglDemo2\Run.jar
 * Qualified Name:     com.java2dgame.transform.Rotate
 * JD-Core Version:    0.6.2
 */